<div class="bh-content">
    <div class="bh-ly-yw-center-jiudian bh-padT10">
    <?php $this->renderPartial('application.views.partials.crumbs')?>
    <div class="bh-ly-yw-center-jiudian-chengshi bh-padL10 bh-Border_2">
    	<?php $form = $this->beginWidget('lib.widgets.CActiveFormAdv',array(
    		'method' => 'get',
    		'action' => Yii::app()->controller->createUrl('hotelList'),
    		'id' => 'search-form'
    	))?>
    	入住城市：
    	<?php LyscHtml::citySelector($form, $model, 'searchCity', array(
    		'id'=>'searchCity'
    	))?>
    	<span>酒店星级</span>：<?php echo $form->dropDownList($model,'star',Yii::app()->enum->options("basic.hotelStar"),array('class'=>'bh-ly-yw-biao'))?>
<!--    	<span>退房日期</span>：<input type="text" class="bh-ly-yw-biao"/>-->
    	<span>酒店名称</span>：<?php echo $form->textField($model,'name', array('class'=>'bh-ly-yw-biao','init-value'=>'输入酒店的名称','id'=>'hotel-name'))?>
    	<input id='submit-search-form' type="submit" value="搜索" class="bh-ly-yw-center-jjingqu-sub"/>
    	<?php $this->endWidget();?>
        <script type="text/javascript">bindTextInit($("#hotel-name"),$('#<?php echo $form->id?>'))</script>
    </div>
    <div class="bh-ly-yw-center-jiudian-xia">
    	<!-- ***************酒店列表*************** -->
        <?php echo $this->renderPartial('application.views.partials.platform.hotel.list',array('data'=>$data))?>
        <!-- ***************畅玩精选*************** -->
        <?php $this->widget('lib.ext.data.DataWidget',array(
            'model' => 'CompanyHotel',
            'criteria' => array(
                'order' => 'id desc',
                'limit' => '5',
            ),
            'view' => 'application.views.partials.hotel.play_selection'
        ))?>
        <div class="bh-space"></div>
    </div>
    </div>
</div>
<script>
$('#submit-search-form').click(function() {
	$.citySelector.get('searchCity').checkValue(function() {
		$('#search-form').submit();
	}, function() {
		alert("您输入的城市无效！");
	});
	return false;
});
</script>